//~ Project: wslds-blog File: BaseTagSupport.java Created date: Feb 21, 2012
package com.wslds.base.tag;

import java.io.IOException;

import javax.servlet.jsp.tagext.TagSupport;

/**
 * 
 * @author $Author: donilan.qq@gmail.com $
 * @version $Revision: 83 $
 */
@SuppressWarnings("serial")
public class BaseTagSupport extends TagSupport {
	
	public String f(String format, Object... args) {
		return String.format(format, args);
	}
	
	public void write(String arg) {
		try {
			this.pageContext.getOut().write(arg);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public void writef(String format, Object... args) {
		write(f(format, args));
	}
	
}
